import store from '../../store'
import {getTagsAction} from '@/store/actions/tagAction.js'
import {getAllArticlesAction} from '@/store/actions/articlesAction.js'


export default async function homeLoader() {

    // 请求所有标签
    store.dispatch(getTagsAction())

    // 请求所有文章
    store.dispatch(getAllArticlesAction(1))

    return null
}
